/*
 * @description: 
 * @Author: Islands
 * @Date: 2024-06-22 00:03:15
 * @LastEditTime: 2024-06-22 00:43:00
 */
import { PropType } from "vue";
const IPlacement = ['bottom', 'right'] as const;
type IPlacementType = (typeof IPlacement)[number];
const IShape = ['circle', 'square'] as const;
type IShapeType = (typeof IShape)[number];


export const props = {
    placement: {
        type: String as PropType<IPlacementType>,
        validator: (v: any) => IPlacement.includes(v),
        default: 'right',
    },
    shape: {
        type: String as PropType<IShapeType>,
        validator: (v: any) => IShape.includes(v),
        default: 'square',
    },
    src: { type: String,default:'' },
    name: { type: String, default: '' },
    size:{ type:Number,default:40}
};